from django.urls import path, re_path
from app01 import views

from django.views.static import serve
from django.conf import settings

urlpatterns = [
    # 上传
    path('FileUploads/', views.FileUploads, name='FileUploads'),
    # 开放外部权限
    re_path(r'media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
]
